package com.e3.web.core.client;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.RemoteService;

public interface ResourceRPCService extends RemoteService {
	public static class Util {

		private static ResourceRPCServiceAsync instance;

		public static ResourceRPCServiceAsync getInstance() {
			instance = (ResourceRPCServiceAsync) RPCServiceHelper.getService(ResourceRPCService.class.getName());
			if (instance == null) {
				instance = GWT.create(ResourceRPCService.class);
				RPCServiceHelper.registerServiceEntryPoint(instance);
			}
			return instance;
		}

	}
	
	public GxtClientSession getClientSession(boolean isDebug) throws WebException;
}
